<include file="Public:header" />
<div class="alert alert-info">
    供应商修改
</div>
<form class="form-horizontal" method="post" action="__URL__/update" onsubmit="return ajax_submit(this);">
    <div class="control-group">
        <label class="control-label">工人姓名<span class="require">*</span></label>
        <div class="controls">
            <input type="text" name="worker_name" placeholder="长度不超过5位" maxlength="5" value="{$data.worker_name}">
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">所在部门<span class="require">*</span></label>
        <div class="controls">
            <select name="worker_department" required>
                <option value="-1">--选择一个部门--</option>
                <option value="生产" <if condition="$data.worker_department eq '生产'">selected</if>>生产</option>
                <option value="销售" <if condition="$data.worker_department eq '销售'">selected</if>>销售</option>
                <option value="技术" <if condition="$data.worker_department eq '技术'">selected</if>>技术</option>
                <option value="运营" <if condition="$data.worker_department eq '运营'">selected</if>>运营</option>
            </select>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">所在班组<span class="require">*</span></label>
        <div class="controls">
            <select name="worker_group" required>
                <option value="-1">--选择一个班组--</option>
                <option value="白班" <if condition="$data.worker_group eq '白班'">selected</if>>白班</option>
                <option value="中班" <if condition="$data.worker_group eq '中班'">selected</if>>中班</option>
                <option value="晚班" <if condition="$data.worker_group eq '晚班'">selected</if>>晚班</option>
            </select>
        </div>
    </div>
    <div class="control-group">
        <div class="controls">
            <input type="submit" value="确　定" class="btn btn-primary" />
            <span class="btn btn-warning" onclick="history.back(-1);">返　回</span>
        </div>
    </div>
    <input type="hidden" name="send" value="sub"/>
    <input type="hidden" name="id" value="{$data.id}"/>
</form>

<include file="Public:check"/>

</body>
</html>